package com.niuniu.rushdorm.service.impl;
/**
 * @author rambo
 * 2022/11/25
 */
import com.niuniu.rushdorm.mapper.BuildingMapper;
import com.niuniu.rushdorm.pojo.response.BuildingInfo;
import com.niuniu.rushdorm.pojo.response.BuildingSketch;
import com.niuniu.rushdorm.service.BuildingSevice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BuildingServiceImpl implements BuildingSevice {
    @Autowired
    BuildingMapper buildingMapper;

    @Override
    public BuildingInfo GetBuildingById(long id) {
        return buildingMapper.GetBuildingById(id);
    }

    @Override
    public List<BuildingSketch> GetBuildings() {
        return buildingMapper.GetBuildings();
    }
}
